//
//  ThreadListViewCtrl.h
//  ClienNetHD
//
//  Created by Sangwoo Park on 11. 1. 20..
//  Copyright 2011 Student. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TDBadgedCell.h"
#import "HtmlDown.h"
#import "IdImagePool.h"
#import "ContentsViewCtrl.h"

@interface ThreadListViewCtrl : UITableViewController <HtmlDownDelegate, IdImagePoolDelegate> {
	NSString *bbsAddr;
	NSInteger bbsPage;

	NSMutableArray *subjects;
	
	ContentsViewCtrl *contentsVC;
	IdImagePool *idImagePool;
	HtmlDown *htmlDown;

	UIView *loadingView;
	UIActivityIndicatorView *spinningWheel;
	
	BOOL isImageList;
}

@property (nonatomic, retain) NSString *bbsAddr;
@property (nonatomic, assign) NSInteger bbsPage;

@property (nonatomic, retain) NSMutableArray *subjects;
@property (nonatomic, assign) ContentsViewCtrl *contentsVC;

@property (nonatomic, retain) HtmlDown *htmlDown;
@property (nonatomic, retain) UIView *loadingView;
@property (nonatomic, retain) UIActivityIndicatorView *spinningWheel; 

- (void)LoadBbsIndex:(int)pageNo;
- (void)LoadBbsIndexDone:(NSData *)pageData;

- (void)downHtmlFail:(HtmlDown *)theHtmlDown;
- (void)downHtmlFinish:(HtmlDown *)theHtmlDown;

- (void)downImageFinish:(NSString *)theIdImageName;

- (void)makeWaitMark;
- (void)showWaitMark;
- (void)hideWaitMark;

- (IBAction)ButnPressed: (id)sender;
- (IBAction)refreshPressed;

@end
